<?php
include_once '../../lib/config_inc.php';
include_once '../../class/function.php';

$numRow5 = $_GET['numRow5'];

/***Esta página se encarga de mostrar la interfaz dinamica para agregar o eliminar areas*/
?>

<table  class="centrado borde" <?php echo $conf_tablas; ?> border="1">
	
	<tr>
		<td colspan="6" bgcolor="#FFF2F5" style="padding:4px; float:center; font-size:14; margin-left:280px;" align="center">
			<a href="javascript:void(0)" title="Eliminar" class="nav" onclick="borrar5(this.name)"  name='<?php echo $numRow5; ?>' id='<?php echo $numRow5; ?>'>
			<img src="../../images/iconos/delete-page.png" alt="Icono" title="Eliminar">
			</a><strong>Eliminar Instrumento
		</td>
	</tr>

	<tr> 
                <td class="sombra1">Tipo</td>
		<td class="sombra2">
       			<select name="tpo_inst<?php echo $numRow5; ?>" id="tpo_inst<?php echo $numRow5; ?>" >
			<option value="0">Seleccione</option>
			<?php 
			$sql="SELECT * FROM t_cman_instrumentos ORDER BY id_instrumento";
			$consulta=ejecutar($sql);
			while($filas=pg_fetch_array($consulta))
			{
				echo "<option value=".$filas["id_instrumento"].">".$filas["nb_instrumento"]."</option>";
			}
			?>
			</select>
		</td>

                <td class="sombra1" colspan="1">Descripcion</td>
                <td class="sombra2" colspan="1">
			
			<textarea id="desc_inst<?php echo $numRow5; ?>" name="desc_inst<?php echo $numRow5; ?>"></textarea>
               	</td>
                <td class="sombra1" colspan="1">Archivo</td>
                <td class="sombra2" colspan="1">
			
			<input type="file" id="imagen_instrumento<?php echo $numRow5; ?>" name="imagen_instrumento<?php echo $numRow5; ?>">
               	</td>
		<input type="hidden" name="numRow" id="numRow" value="<?php echo $numRow5; ?>">
	</tr>
</table>
